<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
	include("_include.user.judge.php");
	$orderid = chkstr(trim($_REQUEST['orderid']));//订单编号
	if(!is_numeric($orderid)){
	  echo erro("参数错误！");
	}
	if(getNewsNums("kboy_order","uid=".$_SESSION['kboy_userid']." and id=$orderid") <1){
	  echo erro("参数错误");
	}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心</title>
<link rel="stylesheet" href="css/common.css"/>
<link rel="stylesheet" href="css/sq.css"/>
<script type="text/javascript" src="js/baidutongji.js"></script>
<script type="text/javascript" src="js/laydate/laydate.js"></script>
</head>
<body>
    <!--top-bar begin-->
	<? include("_include.top.topbar.php") ?>
    <!--top-bar end-->
    <!--banner begin-->
    <? include("_include.user.topbar.php")?>
    <!--banner end-->
    <!--member center-->
    <div class="member-box">
        <div class="content">
			<? include("_include.user.leftnav.php") ?>
            <div class="member-box-r">
                <div class="member-item1">
                    <div class="m-title">申请退款</div>
                   <?php include_once('_include.user.ordersearch.php');?>
                </div>
                <div class="member-basic">
                  <form id="Infoform" name="Infoform" method="post"  action="ordertuimoney.php?action=tuimoney">
				  <input type="hidden" name="orderid" id="orderid" value="<?php echo $orderid;?>" />
					<table class="mbasic-table">
											<tbody>
												<tr>
													<td class="left"><label>退款订单 :</label></td>
													<td class="right"><span><?php echo  getClassName("kboy_order","order_no","uid=".$_SESSION['kboy_userid']." and id=$orderid");?></span></td>
												</tr>
												
												<tr>
												  <td class="left"><label>退款原因：</label></td>
												  <td class="right"><textarea name="order_tui_content"  id="order_tui_content" rows="6"  class="basic-input"  style="width:357px; height:88px;" ></textarea></td>
											  </tr>
												<tr>
													<td class="left"></td>
													<td class="right">
														<input type="submit" name="reset-btn" class="reset-btn" value="提交信息" />
												</tr>
											</tbody>
										</table>
				  </form>
                </div>
            </div>
        </div>
    </div>
    <!--member center-->
    <!--foot begin-->
	<? include("_include.bottom.footbar.php") ?>
    <!--foot begin-->
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="js/sq.js"></script>
	<script language="javascript">
	$(document).ready(function(){
		// 表单提交
		$("#Infoform").submit(function(){
		    var order_tui_content = $("#order_tui_content").val();
			if (order_tui_content.replace(/\ /g,"").length<1){
				alert("请输入退款原因！");
				$("#order_tui_content").focus();
				return false;
			}
		});
	});
	</script>
</body>
</html>
